package com.ym.producer.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
//@Component
//@EnableScheduling
public class Task {
    //定时任务
    @Scheduled(cron = "0 * * * * ?")
    public void test(){
        log.info("+++");
    }
}
